<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Platforma Wizyjna: Plik źródłowy inc/Platforma.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Wygenerowano przez Doxygen 1.7.3 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Szukaj');
--></script>
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Platforma Wizyjna</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Strona&#160;główna</span></a></li>
      <li><a href="annotated.html"><span>Klasy</span></a></li>
      <li class="current"><a href="files.html"><span>Pliki</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Szukaj" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Lista&#160;plików</span></a></li>
      <li><a href="globals.html"><span>Składowe&#160;plików</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('_platforma_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<h1>inc/Platforma.h</h1>  </div>
</div>
<div class="contents">
<a href="_platforma_8h.html">Idź do dokumentacji tego pliku.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00008"></a>00008 <span class="preprocessor">#ifndef PLATFORMA_H_</span>
<a name="l00009"></a>00009 <span class="preprocessor"></span><span class="preprocessor">#define PLATFORMA_H_</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span><span class="preprocessor">#include &lt;SDL/SDL.h&gt;</span>
<a name="l00011"></a>00011 <span class="preprocessor">#include &lt;SDL/SDL_ttf.h&gt;</span>
<a name="l00012"></a>00012 
<a name="l00013"></a>00013 <span class="preprocessor">#include &lt;opencv2/core/core.hpp&gt;</span>
<a name="l00014"></a>00014 <span class="preprocessor">#include &lt;opencv2/highgui/highgui.hpp&gt;</span>
<a name="l00015"></a>00015 <span class="preprocessor">#include &lt;opencv2/imgproc/imgproc_c.h&gt;</span>
<a name="l00016"></a>00016 
<a name="l00017"></a>00017 <span class="preprocessor">#include &quot;<a class="code" href="_options_8h.html">Options.h</a>&quot;</span>
<a name="l00018"></a>00018 <span class="preprocessor">#include &quot;<a class="code" href="_engine_8h.html">Engine.h</a>&quot;</span>
<a name="l00019"></a>00019 <span class="preprocessor">#include &quot;<a class="code" href="_log_8h.html">Log.h</a>&quot;</span>
<a name="l00020"></a>00020 <span class="preprocessor">#include &quot;<a class="code" href="_usart_8h.html">Usart.h</a>&quot;</span>
<a name="l00021"></a>00021 
<a name="l00022"></a>00022 <span class="preprocessor">#include &lt;iostream&gt;</span>
<a name="l00023"></a>00023 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00024"></a>00024 <span class="preprocessor">#include &lt;cstdlib&gt;</span>
<a name="l00025"></a>00025 
<a name="l00027"></a>00027 
<a name="l00028"></a><a class="code" href="_platforma_8h.html#a241aeeb764887ae5e3de58b98f04b16d">00028</a> <span class="preprocessor">#define WIDTH 800</span>
<a name="l00029"></a>00029 <span class="preprocessor"></span>
<a name="l00030"></a><a class="code" href="_platforma_8h.html#aed89bd71aee8be823e8a20ec4e093c1e">00030</a> <span class="preprocessor">#define HEIGHT 600</span>
<a name="l00031"></a>00031 <span class="preprocessor"></span>
<a name="l00036"></a><a class="code" href="class_platforma.html">00036</a> <span class="keyword">class </span><a class="code" href="class_platforma.html">Platforma</a> {
<a name="l00037"></a>00037 <span class="keyword">private</span>:
<a name="l00039"></a>00039         SDL_Surface * screen;
<a name="l00041"></a>00041         CvCapture * camera;
<a name="l00043"></a>00043         TTF_Font *font;
<a name="l00047"></a>00047         <span class="keywordtype">bool</span> error;
<a name="l00048"></a>00048 
<a name="l00052"></a>00052         <a class="code" href="class_engine.html">Engine</a> * engine;
<a name="l00056"></a>00056         <a class="code" href="class_options.html">Options</a> * opt;
<a name="l00060"></a>00060         <a class="code" href="class_log.html">Log</a> * log;
<a name="l00062"></a>00062         <a class="code" href="class_usart.html">Usart</a> * usart;
<a name="l00063"></a>00063 
<a name="l00067"></a>00067         <span class="keyword">virtual</span> <span class="keywordtype">void</span> GetNewFrame(<span class="keywordtype">void</span>);
<a name="l00071"></a>00071         SDL_Surface * IplToSurface(IplImage *opencvimg);
<a name="l00072"></a>00072 
<a name="l00073"></a>00073 <span class="keyword">public</span>:
<a name="l00075"></a>00075         <a class="code" href="class_platforma.html#a9f874add9a37eba802e25c6cec4c4bc8">Platforma</a>();
<a name="l00077"></a>00077         <span class="keyword">virtual</span> <a class="code" href="class_platforma.html#a64c8612bbd88865221bea9ca36a06d4b">~Platforma</a>();
<a name="l00083"></a>00083         <span class="keywordtype">void</span> <a class="code" href="class_platforma.html#a92290ee850488d678a71923ba59fb997">PutText</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> * text, <span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y);
<a name="l00085"></a>00085         <span class="keywordtype">void</span> <a class="code" href="class_platforma.html#a5db785ae51e11e4fcf92ab837974863e">Loop</a>(<span class="keywordtype">void</span>);
<a name="l00089"></a><a class="code" href="class_platforma.html#a2b7b999504bbc10ae2593a6d59e2101d">00089</a>         <span class="keywordtype">bool</span> <a class="code" href="class_platforma.html#a2b7b999504bbc10ae2593a6d59e2101d">Error</a>(<span class="keywordtype">void</span>) {<span class="keywordflow">return</span> error;}
<a name="l00090"></a>00090 };
<a name="l00091"></a>00091 
<a name="l00092"></a>00092 <span class="preprocessor">#endif </span><span class="comment">/* Platforma_H_ */</span>
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="_platforma_8h.html">Platforma.h</a>      </li>
      <li class="footer">Wygenerowano Wed Mar 14 2012 22:07:42 dla Platforma Wizyjna programem&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </li>
    </ul>
  </div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Klasy</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Pliki</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Funkcje</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Zmienne</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Definicje</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


</body>
</html>
